package com.jchao.user.model;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;

/**
 * 用户信息
 * @author chenqing
 * 列名：
	id
	email
	password
	first_name
	last_name
	sex
	sign
	icon
	credits
	attention_count
	fans_count
	create_date
	change_date
 */
@SuppressWarnings("serial")
public class UserInfo extends Model<UserInfo> {
	public static final UserInfo me = new UserInfo();
	
	/**
	 * 用户一览
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 */
	public Page<UserInfo> selectWithPage(int pageNumber, int pageSize) {
		return paginate(pageNumber, pageSize, "select *", "from user_info order by id asc");
	}
}
